<?php
namespace BP\CompteBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 */
class Virement
{
    /**
    * @ORM\Id
    * @ORM\Column(type="integer")
    * @ORM\generatedValue(strategy="AUTO")
    */
    protected $id;
	
	
	/**
	 * @ORM\ManyToOne(targetEntity="BP\CompteBundle\Entity\CompteManager", inversedBy="virements")
     */
	protected $compteManager;

	/**
     * @ORM\OneToOne(targetEntity="BP\CompteBundle\Entity\Operation")
     */
	protected $operationSource;
	
	/**
     * @ORM\OneToOne(targetEntity="BP\CompteBundle\Entity\Operation")
     */
	protected $operationDestination;
	
	/**
	 * @ORM\ManyToOne(targetEntity="BP\CompteBundle\Entity\VirementAutomatique", inversedBy="virements")
     */
	protected $virementAutomatiquePere;
	
	/**
     * @ORM\Column(type="boolean")
     */
	protected $activated;

	/**
     * @ORM\Column(type="boolean")
     */
	protected $deleted;

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set activated
     *
     * @param boolean $activated
     */
    public function setActivated($activated)
    {
        $this->activated = $activated;
    }

    /**
     * Get activated
     *
     * @return boolean 
     */
    public function getActivated()
    {
        return $this->activated;
    }

    /**
     * Set deleted
     *
     * @param boolean $deleted
     */
    public function setDeleted($deleted)
    {
        $this->deleted = $deleted;
    }

    /**
     * Get deleted
     *
     * @return boolean 
     */
    public function getDeleted()
    {
        return $this->deleted;
    }

    /**
     * Set compteManager
     *
     * @param BP\CompteBundle\Entity\CompteManager $compteManager
     */
    public function setCompteManager(\BP\CompteBundle\Entity\CompteManager $compteManager)
    {
        $this->compteManager = $compteManager;
    }

    /**
     * Get compteManager
     *
     * @return BP\CompteBundle\Entity\CompteManager 
     */
    public function getCompteManager()
    {
        return $this->compteManager;
    }

    /**
     * Set operationSource
     *
     * @param BP\CompteBundle\Entity\Operation $operationSource
     */
    public function setOperationSource(\BP\CompteBundle\Entity\Operation $operationSource)
    {
        $this->operationSource = $operationSource;
    }

    /**
     * Get operationSource
     *
     * @return BP\CompteBundle\Entity\Operation 
     */
    public function getOperationSource()
    {
        return $this->operationSource;
    }

    /**
     * Set operationDestination
     *
     * @param BP\CompteBundle\Entity\Operation $operationDestination
     */
    public function setOperationDestination(\BP\CompteBundle\Entity\Operation $operationDestination)
    {
        $this->operationDestination = $operationDestination;
    }

    /**
     * Get operationDestination
     *
     * @return BP\CompteBundle\Entity\Operation 
     */
    public function getOperationDestination()
    {
        return $this->operationDestination;
    }

    /**
     * Set virementAutomatiquePere
     *
     * @param BP\CompteBundle\Entity\VirementAutomatique $virementAutomatiquePere
     */
    public function setVirementAutomatiquePere(\BP\CompteBundle\Entity\VirementAutomatique $virementAutomatiquePere)
    {
        $this->virementAutomatiquePere = $virementAutomatiquePere;
    }

    /**
     * Get virementAutomatiquePere
     *
     * @return BP\CompteBundle\Entity\VirementAutomatique 
     */
    public function getVirementAutomatiquePere()
    {
        return $this->virementAutomatiquePere;
    }
}